package data;

import java.util.List;

/**
 * @author sad
 */
public class RegionConnection {

    private List<ConnectionPoint> connectionPoints;
    private NavmeshRegion polygon;

    public List<ConnectionPoint> getConnectionPoints() {
        return connectionPoints;
    }

    public void setConnectionPoints(List<ConnectionPoint> connectionPoints) {
        this.connectionPoints = connectionPoints;
    }

    public NavmeshRegion getPolygon() {
        return polygon;
    }

    public void setPolygon(NavmeshRegion polygon) {
        this.polygon = polygon;
    }

    public ConnectionPoint selectRandomConnectionPoint() {
        int index=(int) (Math.random()*connectionPoints.size());
        return connectionPoints.get(index);
    }
}
